package com.hjm.project.team.teamYlPolicy.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.team.teamYlPolicy.mapper.TeamYlPolicyMapper;
import com.hjm.project.team.teamYlPolicy.domain.TeamYlPolicy;
import com.hjm.project.team.teamYlPolicy.service.ITeamYlPolicyService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 团队政策中间Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-04-11
 */
@Service
public class TeamYlPolicyServiceImpl implements ITeamYlPolicyService 
{
    @Resource
    private TeamYlPolicyMapper teamYlPolicyMapper;

    /**
     * 查询团队政策中间
     * 
     * @param id 团队政策中间ID
     * @return 团队政策中间
     */
    @Override
    public TeamYlPolicy selectTeamYlPolicyById(Integer id)
    {
        return teamYlPolicyMapper.selectTeamYlPolicyById(id);
    }

    /**
     * 查询团队政策中间列表
     * 
     * @param teamYlPolicy 团队政策中间
     * @return 团队政策中间
     */
    @Override
    public List<TeamYlPolicy> selectTeamYlPolicyList(TeamYlPolicy teamYlPolicy)
    {
        return teamYlPolicyMapper.selectTeamYlPolicyList(teamYlPolicy);
    }

    /**
     * 新增团队政策中间
     * 
     * @param teamYlPolicy 团队政策中间
     * @return 结果
     */
    @Override
    public int insertTeamYlPolicy(TeamYlPolicy teamYlPolicy)
    {
        return teamYlPolicyMapper.insertTeamYlPolicy(teamYlPolicy);
    }

    /**
     * 修改团队政策中间
     * 
     * @param teamYlPolicy 团队政策中间
     * @return 结果
     */
    @Override
    public int updateTeamYlPolicy(TeamYlPolicy teamYlPolicy)
    {
        return teamYlPolicyMapper.updateTeamYlPolicy(teamYlPolicy);
    }

    /**
     * 删除团队政策中间对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTeamYlPolicyByIds(String ids)
    {
        return teamYlPolicyMapper.deleteTeamYlPolicyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除团队政策中间信息
     * 
     * @param id 团队政策中间ID
     * @return 结果
     */
    @Override
    public int deleteTeamYlPolicyById(Integer id)
    {
        return teamYlPolicyMapper.deleteTeamYlPolicyById(id);
    }
}
